---
title: Checking consent
description: Check if the user has given consent for a specific purpose with the has() method.
lastModified: 2025-08-20
availableIn:
  - framework: 'javascript'
    url: '/docs/frameworks/javascript/store/checking-consent'
    title: 'JavaScript'
  - framework: 'next'
    url: '/docs/frameworks/next/hooks/use-consent-manager/checking-consent'
    title: 'Next.js'
  - framework: 'react'
    url: '/docs/frameworks/react/hooks/use-consent-manager/checking-consent'
    title: 'React'
---

<import>../shared/store/checking-consent.mdx</import>
